package org.jeecg.modules.xindian.reconciliation.enums;


/**
 * 平台交易码对应区域Id
 */
public enum PlatformCodeAreaMap {
    省平台("A3205310000","ZJSPT"),
    新省平台("A3205310000V2","ZJSPT"),
    台州("A3205318000","TaiZhou"),
    台州三门("A3205317100","TaiZhou"),
    台州2("A3310011060ZJTB","TaiZhou"),
    台州3("A3205317500","TaiZhou"),
    衢州("A3205324022ZJTB","QuZhou"),
    衢州_江山("A3205324100ZJTB","QuZhou"),
    衢州2("A3205324000ZJTB","QuZhou"),
    衢州常山("A3205324200ZJTB","QuZhou"),
    衢州_ZJTB("A3205324002ZJTB","QuZhou"),
    宁波慈溪("A3205315300","NingBo"),
    嘉兴("A3205314000V2ZJTB","JiaXin"),
    嘉兴_海宁("A3205314400XE","JiaXin"),
    嘉兴_桐乡("A3205314500XE","JiaXin"),
    嘉兴_海盐("A3205314300XE","JiaXin"),
    嘉兴海盐县("A3205314300V2ZJTB","JiaXin"),
    嘉兴海宁市("A3205314400V2ZJTB","JiaXin"),
    嘉兴平湖县("A3205314200V2ZJTB","JiaXin"),
    嘉兴桐乡市("A3205314500V2ZJTB","JiaXin"),
    嘉兴嘉善县("A3205314100V2ZJTB","JiaXin"),
    嘉兴海宁("A3205314400DZJTB","JiaXin"),
    湖州("A3205313000NZJTB","HuZhou"),
    湖州_其他平台("A3205313000N","HuZhou"),
    湖州德清("A3205330521ZJTB","HuZhou"),
    湖州长兴("A3205313100V2ZJTB","HuZhou"),
    湖州安吉("A3205313300V2ZJTB","HuZhou"),
    杭州("A3205313300V2ZJTB","HangZhou"),
    杭州2("A3205310001","HangZhou"),
    金华("A3205321000","JinHua"),
    金华_磐安("A3307270830","JinHua"),
    金华_兰溪("A3307810870","JinHua"),
    金华_金华本级("A3307010780","JinHua"),
    金华_婺城("A3307020790","JinHua"),
    金华_东阳("A3307830890","JinHua"),
    金华_浦江("A3307260820","JinHua"),
    金华_金东("A3307030800","JinHua"),
    金华_义乌("A3205322000SZHZJTB","JH-YiWu"),
    金华_武义("A3307230810","JinHua"),
    金华_金华经济技术开发区("A3307310850","JinHua"),
    金华_永康("A3307840900","JinHua"),
    丽水("A3205323000ZJTB","LiShui"),
     温州("A3205325000ZJTB","WenZhou");

    private String platformcode;
   private String areaId;

    public String getPlatformcode() {
        return platformcode;
    }

    public String getAreaId() {
        return areaId;
    }

    PlatformCodeAreaMap(String platformcode, String areaId) {
        this.platformcode = platformcode;
        this.areaId = areaId;
    }


    /**
     * 平台平台归属于哪个组织下
     * @return
     */
    public static PlatformCodeAreaMap getByPlatFormCode(String code){
       PlatformCodeAreaMap[] platformCodeAreaMap  =  PlatformCodeAreaMap.values();
        for (PlatformCodeAreaMap codeAreaMap : platformCodeAreaMap) {
            if(codeAreaMap.platformcode.equals(code)){
                return codeAreaMap;
            }
        }
        return  null;
    }
}
